package 迭代器模式与组合模式;

import java.util.List;

public class Apples extends MenuItem{

    private Integer[] count;

    public Apples(Integer[] count) {
        this.count = count;
    }

    @Override
    public Iterator createdItem() {
        return new ApplesIterator(this.count);
    }

    @Override
    public void setSonMenuItem(MenuItem menuItem) {
        this.menuItem = menuItem;
    }


}
